import request from '@/utils/request'

// 查询供应商联系记录列表
export function listSupplierrecord(query) {
  return request({
    url: '/crm/supplierrecord/list',
    method: 'get',
    params: query
  })
}

// 查询供应商联系记录详细
export function getSupplierrecord(id) {
  return request({
    url: '/crm/supplierrecord/' + id,
    method: 'get'
  })
}

// 新增供应商联系记录
export function addSupplierrecord(data) {
  return request({
    url: '/crm/supplierrecord',
    method: 'post',
    data: data
  })
}

// 修改供应商联系记录
export function updateSupplierrecord(data) {
  return request({
    url: '/crm/supplierrecord',
    method: 'put',
    data: data
  })
}

// 删除供应商联系记录
export function delSupplierrecord(id) {
  return request({
    url: '/crm/supplierrecord/' + id,
    method: 'delete'
  })
}
